package com.qiaofang.housewarehouse.dao;

import com.qiaofang.housewarehouse.dao.domain.IndexCityRegionDistrict;
import com.qiaofang.housewarehouse.stub.bean.SaleAndRentalByCityDTO;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.search.SearchResponse;

import java.util.List;
import java.util.Map;

public interface EsDAO {
    SearchResponse searchHouseList(Map<String, String> paramMap) throws Exception;
    SearchResponse searchHouseNoPageList(Map<String, String> paramMap) throws Exception;
    GetResponse getIndexById(Map<String, String> paramMap) throws Exception ;
    <T> List<T> searchRegionListByCityType(Class<T> cls, String index, String type, String cityName);
    <T> List<T> searchDistrictListByCityAndRegionType(Class<T> cls, String index, String type, String cityName, String regionName);

    SaleAndRentalByCityDTO querySaleAndRentalByCity(String cityName)throws Exception;
}
